<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="created" content="2018-10-23T06:18:10.521000000">
    <meta name="changed" content="2021-07-18T10:59:00.000000000">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="en">
    <title>
      Constant
    </title>
    <link rel="stylesheet" type="text/css" href="../../style.css">
  </head>
  <body>
    <div class="maindiv">
      <h1>
        <img class="iconlibs" src="../../../../icons/6464/constant.png" alt="#########" width="32" height="32"> <em> Constant</em>
      </h1>
      <table>
        <tbody>
          <tr>
            <td>
              <strong>Library:</strong>
            </td>
            <td>
              <a href="index.html">Wiring</a>
            </td>
          </tr>
          <tr>
            <td>
              <strong>Introduced:</strong>
            </td>
            <td>
              2.0 Beta 1 (in Gates library, moved to Wiring in 2.7.0)
            </td>
          </tr>
          <tr>
            <td valign="top">
              <strong>Appearance:</strong>
            </td>
            <td valign="top">
              <img class="appearancelibs" src="../../../../img-libs/constant0.png" alt="#########" width="64" height="64"> 
			  <img class="appearancelibs" src="../../../../img-libs/constant1.png" alt="#########" width="64" height="64">
            </td>
          </tr>
        </tbody>
      </table>
      <h2>
        Behavior
      </h2>
      <p>
        Emits the value specified in its Value attribute.
      </p>
      <h2>
        Pins
      </h2>
      <p>
        There is only one pin, an output whose bit width matches the Data Bits attribute. The location of this pin is specified in the Facing attribute. The component constantly outputs on this pin whatever value specified in the Value attribute.
      </p>
      <h2>
        Attributes
      </h2>
      <p>
        When the component is selected or being added, the hexademical digits <b class="tkeybd">0</b> through <b class="tkeybd">9</b> and <b class="tkeybd">a</b> through <b class="tkeybd">f</b> alter its <b class="propertie">Value</b> attribute. <b class="tkeybd">Alt-0</b> through <b class="tkeybd">Alt-9</b> alter its <b class="propertie">Data Bits</b> attribute and the arrow keys alter its <b class="propertie">Facing</b> attribute.
      </p>
	  <div class="attliste">
      <dl>
        <dt>
          <b class="propertie">Facing</b>
        </dt>
        <dd>
          The direction in which the pin is located relative to where the value is drawn.
        </dd>
        <dt>
          <b class="propertie">Data Bits</b>
        </dt>
        <dd>
          The bit width of the value placed onto the wire.
        </dd>
        <dt>
          <b class="propertie">Value</b>
        </dt>
        <dd>
          The value, written in hexademical, that is emitted by the component. The number of bits used to specify the value cannot exceed the component's bit width.
        </dd>
      </dl>
	  </div>
      <h2>
        Poke Tool Behavior
      </h2>
      <p>
        None.
      </p>
      <h2>
        Text Tool Behavior
      </h2>
      <p>
        None.
      </p>
      <p>
        <b>Back to</b> <a href="../index.html">Library Reference</a>
      </p>
    </div>
  </body>
</html>
